package com.design.model;

/**
 * 咖啡装饰器
 *
 * @author lw
 * @date 2023/12/4 14:34
 **/
public abstract class CoffeeDecorator implements Coffee{

    protected Coffee coffee;

    public CoffeeDecorator(Coffee coffee) {
        this.coffee = coffee;
    }

    @Override
    public double cost() {
        return coffee.cost();
    }

    @Override
    public String description() {
        return coffee.description();
    }
}
